﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_enquiry")]
    [Serializable]
    public class Enquiry : ObjectBase<Enquiry>
    {
        [NotNull(""), Column(Length = 50)]
        public String enquirysn { get; set; }

        [Column(Length = 11), NotNull(""), Default(0)]
        public Int64 userid { get; set; }

        [NotNull(""), Column(Length = 100)]
        public String linkman { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(0)]
        public Int64 sex { get; set; }

        [TinyInt, Column(Length = 5), NotNull(""), Default(0)]
        public Int64 country { get; set; }

        [TinyInt, Column(Length = 5), NotNull(""), Default(0)]
        public Int64 province { get; set; }

        [TinyInt, Column(Length = 5), NotNull(""), Default(0)]
        public Int64 city { get; set; }

        [TinyInt, Column(Length = 5), NotNull(""), Default(0)]
        public Int64 district { get; set; }

        [NotNull(""), Column(Length = 255)]
        public String address { get; set; }

        [NotNull(""), Column(Length = 20)]
        public String zipcode { get; set; }

        [NotNull(""), Column(Length = 20)]
        public String tel { get; set; }

        [NotNull(""), Column(Length = 20)]
        public String fax { get; set; }

        [NotNull(""), Column(Length = 20)]
        public String mobile { get; set; }

        [NotNull(""), Column(Length = 100)]
        public String email { get; set; }

        [LongText]
        public String content { get; set; }

        [TinyInt, Column(Length = 1), NotNull(""), Default(1)]
        public Int64 isclass { get; set; }

        [NotNull("")]
        public DateTime addtime { get; set; }

        public DateTime edittime { get; set; }

        [LongText]
        public String editresult { get; set; }


    }
}
